/**
 * %项目描述%
 * %版本信息%
 */
package com.leehom.arch.base.shard.model;

import java.io.Serializable;
import java.util.Date;

import jakarta.persistence.Embeddable;
import lombok.Data;

/**
 * @类名: Marker
 * @说明: 分片标记
 * 
 * @author leehom
 * @Date 2012-6-4 下午04:58:38
 * @修改记录：
 * 
 * @see
 * 
 */
@Embeddable
@Data
public class Marker implements Cloneable, Serializable {
	
	/** */
	private static final long serialVersionUID = -865799693591797838L;
	/** 名称，分片资源属性，即使用什么属性标记*/
	private String name;
	/** 整数值&日期值&字符型值*/
	private Long nvalue;
	private Date dvalue;
	private String svalue;
	
	public Marker() {
		super();
	}

	public Marker(String name, Long nvalue) {
		super();
		this.name = name;
		this.nvalue = nvalue;
	}
	
	public Marker(String name, Date dvalue) {
		super();
		this.name = name;
		this.dvalue = dvalue;
	}
	
	public Marker(String name, String svalue) {
		super();
		this.name = name;
		this.svalue = svalue;
	}
	
}

